package com.xuecheng.teaching.service;

import com.xuecheng.commons.model.dto.Comment2Dto;
import com.xuecheng.commons.model.dto.CommentDto;
import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.vo.CountVo;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.teaching.domain.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author itheima
 * @since 2022-08-13
 */
public interface CommentService extends IService<Comment> {
    //课程评论列表
    ResponseResult commentList(PageRequest request, Comment2Dto dto);
    //课程评论统计
    ResponseResult countById(Long targetId);
    // 评论课程
    ResponseResult commentPub(CommentDto dto);
   // 机构的评论列表
    ResponseResult listAll(PageRequest request);
    // 机构模糊查询
    ResponseResult getLike(String courseName);
}
